<?php

class Welcome extends Controller {

	function Welcome()
	{
		parent::Controller();	
    if(!__is_loggedin()){
      redirect('login');
    }
	}
	
	function index()
	{
    $this->load->view('header');
		$this->load->view('welcome_message');
    $this->load->view('footer');
	}
  
  function reg()
	{
    $this->load->view('header');
		$this->load->view('registration');
    $this->load->view('footer');
	}
  
  
  function thankyou()
	{
    $this->load->view('header');
		$this->load->view('thankyou');
    $this->load->view('footer');
	}
  
  function search()
	{
    $this->load->view('header');
		$this->load->view('listing');
    $this->load->view('footer');
	}
  
  function login()
	{
    $this->load->view('header');
		$this->load->view('login');
    $this->load->view('footer');
	}
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */